<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>单行文本输入框绑定</title>
    <script src="/js/vue.js"></script>
</head>
<body>
    <div id ="app">
        <input type="text" v-model="message" value="初识Vue.js">
    </div>

    <script>
     var vm = new Vue({
        el: '#app',
        data: {
            message:'Vue.js从入门到精通'
        }
     });
    </script>
</body>
</html>